//
//  ShareResouceDetailModel.m
//  ShangHaiHuDongApp
//
//  Created by 刘应平 on 2017/6/22.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "ShareResouceDetailModel.h"

@implementation ShareResouceDetailModel
- (void)setTitle:(NSString *)title{
    _title = title;
    self.titleWidth = [CalculateLabelHeight CalculateLabelWidthWithString:title font:16 * [UIScreen zj_textFontScale] height:20 * [UIScreen zj_screenHScale]].width;
}

- (void)setContent:(NSString *)content{
    _content = content;
    self.contentHeight = [CalculateLabelHeight CalculateLabelHeightWithString:content font:16 * [UIScreen zj_textFontScale] width:[UIScreen zj_screenWith] - 45 * [UIScreen zj_screenWScale] - self.titleWidth].height;
}

- (CGFloat)allHeight{
    return self.contentHeight + 30 * [UIScreen zj_screenHScale];
}
@end
